/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package weixinkeji.dev.dc.base.user.check;

import sys.wx.c.components.check.CheckService;
import sys.wx.c.components.check.bean.CheckData;

public class FWYCheck {

    public CheckData doFWY(boolean id_must) {//如果是添加操作id还没产生，所以用变量。
        CheckData cd = CheckService.getCheckData();
        cd
                .put("fwy_id", CheckData.ID, id_must)
                .put("fwy_name", CheckData.TEXT_L + "{1,26}", true)
                .put("fwy_account", CheckData.TEXT_L + "{1,16}", !id_must)
                .put("fwy_tel", CheckData.TEXT_L + "{1,50}", false)
                .put("fwy_email", CheckData.EMAIL, false)
                .put("user_sort", "0{1}", false)
                .put("fwy_style", CheckData.VALUE_0_1, true)
                .put("fwy_lock", CheckData.TEXT_L + "{1,26}", true)
                .put("fwy_password", CheckData.TEXT_L + "{1,32}", true);
        return cd;
    }
}
